﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Html</title>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
	$('img').click(function(ex) {
		var src=decodeURI(ex.target.src);
		var imgFile=src.split("/");
		var xx=imgFile[imgFile.length-1];
		//ex.target.border="2px solid red";
		//alert(ex.target.border);
		window.external.ListBoxSelect(xx); //C#中的方法
    });
});
//移动滚动条
function ScrollYd(message)
{
	var imgDom=$("img[src$='"+message+"']");  //获取当前选中的IMG对象
	//var offX=x.offset().top;
	$("html,body").animate({scrollTop:imgDom.offset().top}, 0);
}
</script>
<style type="text/css">
*{
	margin:0px;
	padding:0px;
}
body{
	width:745px;
	margin:0 auto;
	background-color:black;
}
a{
	text-decoration:none;
}
img{
	border:none;
}
</style>
</head>
<body>